///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Feb 17 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "ttcodeNewProjectDlg.h"

///////////////////////////////////////////////////////////////////////////

NewProjectDialog::NewProjectDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxSize( 640,400 ), wxDefaultSize );
	
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer7;
	bSizer7 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer8;
	bSizer8 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer9;
	bSizer9 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer11;
	bSizer11 = new wxBoxSizer( wxHORIZONTAL );
	
	wxBoxSizer* bSizer13;
	bSizer13 = new wxBoxSizer( wxHORIZONTAL );
	
	wxBoxSizer* bSizer14;
	bSizer14 = new wxBoxSizer( wxVERTICAL );
	
	m_staticTextProjectType = new wxStaticText( this, wxID_ANY, wxT("Project Types"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticTextProjectType->Wrap( -1 );
	bSizer14->Add( m_staticTextProjectType, 0, wxALL|wxEXPAND, 5 );
	
	m_treeCtrlProjectType = new wxTreeCtrl( this, wxID_ANY, wxDefaultPosition, wxSize( 200,220 ), wxTR_DEFAULT_STYLE|wxTR_HIDE_ROOT|wxTR_MULTIPLE|wxTR_ROW_LINES );
	m_treeCtrlProjectType->SetMinSize( wxSize( 200,220 ) );
	
	bSizer14->Add( m_treeCtrlProjectType, 0, wxALL|wxEXPAND, 5 );
	
	bSizer13->Add( bSizer14, 1, 0, 5 );
	
	wxBoxSizer* bSizer15;
	bSizer15 = new wxBoxSizer( wxVERTICAL );
	
	m_staticTextTemplate = new wxStaticText( this, wxID_ANY, wxT("Templates"), wxDefaultPosition, wxSize( 400,-1 ), 0 );
	m_staticTextTemplate->Wrap( -1 );
	m_staticTextTemplate->SetMinSize( wxSize( 400,-1 ) );
	
	bSizer15->Add( m_staticTextTemplate, 0, wxALL, 5 );
	
	wxBoxSizer* bSizer16;
	bSizer16 = new wxBoxSizer( wxVERTICAL );
	
	m_panelTemplate = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxSize( 400,-1 ), wxTAB_TRAVERSAL );
	m_panelTemplate->SetBackgroundColour( wxColour( 255, 255, 255 ) );
	m_panelTemplate->SetMinSize( wxSize( 400,-1 ) );
	
	wxBoxSizer* bSizer17;
	bSizer17 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer181;
	bSizer181 = new wxBoxSizer( wxVERTICAL );
	
	m_staticText6 = new wxStaticText( m_panelTemplate, wxID_ANY, wxT("Installed templates"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText6->Wrap( -1 );
	bSizer181->Add( m_staticText6, 1, wxALL, 5 );
	
	m_staticlineTempTop = new wxStaticLine( m_panelTemplate, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
	bSizer181->Add( m_staticlineTempTop, 0, wxEXPAND | wxALL, 5 );
	
	bSizer17->Add( bSizer181, 0, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer20;
	bSizer20 = new wxBoxSizer( wxVERTICAL );
	
	m_listCtrlPanel = new wxListCtrl( m_panelTemplate, wxID_ANY, wxDefaultPosition, wxSize( 400,120 ), wxLC_SINGLE_SEL|wxLC_SMALL_ICON|wxNO_BORDER );
	bSizer20->Add( m_listCtrlPanel, 0, wxALL|wxEXPAND|wxSHAPED, 5 );
	
	bSizer17->Add( bSizer20, 1, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer191;
	bSizer191 = new wxBoxSizer( wxVERTICAL );
	
	m_staticlineTempBottom = new wxStaticLine( m_panelTemplate, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
	bSizer191->Add( m_staticlineTempBottom, 0, wxEXPAND | wxALL, 5 );
	
	m_buttonNext = new wxButton( m_panelTemplate, wxID_ANY, wxT("Next"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer191->Add( m_buttonNext, 0, wxALL|wxALIGN_RIGHT, 5 );
	
	bSizer17->Add( bSizer191, 0, wxEXPAND, 5 );
	
	m_panelTemplate->SetSizer( bSizer17 );
	m_panelTemplate->Layout();
	bSizer16->Add( m_panelTemplate, 1, wxEXPAND | wxALL, 5 );
	
	bSizer15->Add( bSizer16, 1, wxEXPAND, 5 );
	
	bSizer13->Add( bSizer15, 0, wxEXPAND, 5 );
	
	bSizer11->Add( bSizer13, 0, 0, 5 );
	
	bSizer9->Add( bSizer11, 1, 0, 5 );
	
	bSizer8->Add( bSizer9, 0, 0, 5 );
	
	bSizer7->Add( bSizer8, 1, 0, 5 );
	
	bSizer6->Add( bSizer7, 0, 0, 5 );
	
	wxBoxSizer* bSizer18;
	bSizer18 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer19;
	bSizer19 = new wxBoxSizer( wxVERTICAL );
	
	m_staticTextGuildText = new wxStaticText( this, wxID_ANY, wxT("Create a new"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticTextGuildText->Wrap( -1 );
	bSizer19->Add( m_staticTextGuildText, 0, wxALL|wxEXPAND, 5 );
	
	bSizer18->Add( bSizer19, 0, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer21;
	bSizer21 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer22;
	bSizer22 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer23;
	bSizer23 = new wxBoxSizer( wxHORIZONTAL );
	
	m_staticTextName = new wxStaticText( this, wxID_ANY, wxT("Name:"), wxDefaultPosition, wxSize( 100,-1 ), 0 );
	m_staticTextName->Wrap( -1 );
	m_staticTextName->SetMinSize( wxSize( 100,-1 ) );
	
	bSizer23->Add( m_staticTextName, 0, wxALL|wxEXPAND, 5 );
	
	m_textCtrlName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 350,-1 ), 0 );
	m_textCtrlName->SetMinSize( wxSize( 350,-1 ) );
	
	bSizer23->Add( m_textCtrlName, 0, wxALL|wxEXPAND, 5 );
	
	bSizer22->Add( bSizer23, 0, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer24;
	bSizer24 = new wxBoxSizer( wxHORIZONTAL );
	
	m_staticTextLocation = new wxStaticText( this, wxID_ANY, wxT("Location:"), wxDefaultPosition, wxSize( 100,-1 ), 0 );
	m_staticTextLocation->Wrap( -1 );
	m_staticTextLocation->SetMinSize( wxSize( 100,-1 ) );
	
	bSizer24->Add( m_staticTextLocation, 0, wxALL|wxEXPAND, 5 );
	
	wxArrayString m_choiceLocationChoices;
	m_choiceLocation = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxSize( 350,-1 ), m_choiceLocationChoices, 0 );
	m_choiceLocation->SetSelection( 0 );
	m_choiceLocation->SetMinSize( wxSize( 350,-1 ) );
	
	bSizer24->Add( m_choiceLocation, 0, wxALL|wxEXPAND, 5 );
	
	m_buttonBrowse = new wxButton( this, wxID_ANY, wxT("Browse"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer24->Add( m_buttonBrowse, 0, wxALL|wxEXPAND, 5 );
	
	bSizer22->Add( bSizer24, 0, wxEXPAND, 5 );
	
	bSizer21->Add( bSizer22, 1, wxEXPAND, 5 );
	
	bSizer18->Add( bSizer21, 1, wxEXPAND, 5 );
	
	bSizer6->Add( bSizer18, 0, wxEXPAND, 5 );
	
	m_sdbSizer2 = new wxStdDialogButtonSizer();
	m_sdbSizer2OK = new wxButton( this, wxID_OK );
	m_sdbSizer2->AddButton( m_sdbSizer2OK );
	m_sdbSizer2Cancel = new wxButton( this, wxID_CANCEL );
	m_sdbSizer2->AddButton( m_sdbSizer2Cancel );
	m_sdbSizer2->Realize();
	bSizer6->Add( m_sdbSizer2, 0, wxALIGN_RIGHT, 5 );
	
	this->SetSizer( bSizer6 );
	this->Layout();
	
	// Connect Events
	m_treeCtrlProjectType->Connect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( NewProjectDialog::m_treeCtrlProjectTypeOnTreeSelChanged ), NULL, this );
	m_listCtrlPanel->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( NewProjectDialog::m_listCtrlPanelOnListItemSelected ), NULL, this );
	m_textCtrlName->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( NewProjectDialog::m_textCtrlNameOnText ), NULL, this );
}

NewProjectDialog::~NewProjectDialog()
{
	// Disconnect Events
	m_treeCtrlProjectType->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( NewProjectDialog::m_treeCtrlProjectTypeOnTreeSelChanged ), NULL, this );
	m_listCtrlPanel->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( NewProjectDialog::m_listCtrlPanelOnListItemSelected ), NULL, this );
	m_textCtrlName->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( NewProjectDialog::m_textCtrlNameOnText ), NULL, this );
	
}
